package {
	import rabbitas.types.RabbitUtilsPackage;
	import rabbitas.types.FlashDisplayPackage;
	import flash.events.Event;
	import rabbitas.RabbitAS;
	import flash.display.Sprite;
	
	/**
	 * @author martindyrby
	 */
	public class RabbitFunctionalTest extends Sprite {
		private var ras : RabbitAS;

		public function RabbitFunctionalTest() {
			
			ras = new RabbitAS(this);
			new FlashDisplayPackage();
			new RabbitUtilsPackage();
			ras.addEventListener(Event.COMPLETE, onComplete);
			ras.init("test-configuration.xml");
		}

		private function onComplete(event : Event) : void {

			var s:Sprite = ras.getObjectById("mySprite");
			ras.getObjectById("myGraphics");
			ras.getObjectById("myGraphics2");
			
			var t:String = ras.getObjectById("myText");
			
			addChild(s);
		}
	}
}
